<!--服务监督卡办理-->
<template>
<div class="public-common">
    <div class="public-title">服务监督卡办理列表</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="6">
                <el-form-item label="名称">
                    <el-input v-model="form.ming" placeholder="请输入申请人/车牌号/学期/学号/监督卡类型进行快速搜索"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="18">
                <el-button type="primary" icon="el-icon-edit-outline" style="float: right; margin-right: 5px;">打印边距调整	</el-button>
                <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
                <el-button type="primary" icon="el-icon-tickets" @click="dialogVisible=true">申请服务监督卡</el-button>
                <el-button type="primary" icon="el-icon-printer">打印大卡</el-button>
                <el-button type="primary" icon="el-icon-printer">打印小卡</el-button>
                <el-button type="primary" icon="el-icon-document">写IC卡信息	</el-button>
            </el-col>
        </el-row>
    </el-form>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="驾驶员" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="资格证号" prop="a2">
            </el-table-column>
            <el-table-column
                label="车牌号" prop="a3">
            </el-table-column>
            <el-table-column
                label="学期" prop="a4">
            </el-table-column>
            <el-table-column
                label="学号" prop="a5">
            </el-table-column>
            <el-table-column
                label="是否电子监督卡" prop="a6">
            </el-table-column>
            <el-table-column
                label="监督卡类型" prop="a7">
            </el-table-column>
            <el-table-column
                label="申请状态" prop="a8">
            </el-table-column>
            <el-table-column
                label="申请人" prop="a9">
            </el-table-column>
            <el-table-column
                label="申请时间" prop="a10">
            </el-table-column>
            <el-table-column
                label="注销标志" prop="a11">
            </el-table-column>
            <el-table-column
                label="注销时间" prop="a12">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <el-dialog title="服务监督卡办理" :visible.sync="dialogVisible" width="60%" >
        	<el-form :model="editForm" ref="editForm" label-width="80px" class="qysb-form-f" >
        	<el-scrollbar style="height:100%;">
            <div class="fuwukab">服务监督卡办理条件</div>
        		<el-row>
        			<el-col :span="10">
        			  <el-form-item label="学期" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.jiandu1" ></el-input>
        			  </el-form-item>
        			</el-col>
              <el-col :span="10">
                <el-form-item label="学号" class="cyqlabel">
                		<el-input size="small" v-model="editForm.jiandu2" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">

              </el-col>
        		</el-row>
            <el-row>
            	<el-col :span="10">
            	  <el-form-item label="车牌号" class="cyqlabel" prop="cname">
            	  		<el-input size="small" v-model="editForm.jiandu3" ></el-input>
            	  </el-form-item>
            	</el-col>
              <el-col :span="10">
                <el-form-item label="卡类型" class="cyqlabel" prop="cname">
                		<el-select  size="small"style="width: 100%;" placeholder="请选择"  v-model="editForm.jiandu4">
                			<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                		</el-select>
                </el-form-item>
              </el-col>
              <el-col :span="4">
                    <el-button type="primary" icon="el-icon-search" style="margin-left:10px;" @click="search()">搜索</el-button>
              </el-col>
            </el-row>
            <div class="fuwukab">驾驶员及服务监督卡信息</div>
        		<el-row>
        			<el-col :span="10">
        			  <el-form-item label="驾驶员姓名" class="cyqlabel" >
        			  		<el-input  size="small" v-model="editForm.jiandu5" ></el-input>
        			  </el-form-item>
        			</el-col>
              <el-col :span="10">
                <el-form-item label="资格证号" class="cyqlabel" >
                		<el-input  size="small" v-model="editForm.jiandu6" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">

              </el-col>
        		</el-row>
            <el-row>
            	<el-col :span="10">
            	  <el-form-item label="驾驶员年审" class="cyqlabel" >
            	  		<el-input  size="small" v-model="editForm.jiandu7" ></el-input>
            	  </el-form-item>
            	</el-col>
              <el-col :span="10">
                <el-form-item label="身份证号" class="cyqlabel" >
                		<el-input  size="small" v-model="editForm.jiandu8" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">

              </el-col>
            </el-row>
            <div style="margin: 10px 0; overflow: hidden;">
              <div style="width: 15%; display: inline; float: left;">
                <img src="../images/fuwutou.gif" width="110" height="145">
              </div>
              <div style=" display: inline; width: 85%; float: left;">
                  <div class="fuwukab">该驾驶员已有服务监督卡</div>
                  <el-table :data="tabledataq" size="mini" border stripe header-row-class-name="textcenter">
                          <el-table-column
                              label="车牌号" fixed="left" prop="a1">
                          </el-table-column>
                          <el-table-column
                              label="单位" prop="a2">
                          </el-table-column>
                          <el-table-column
                              label="服务监督卡类型" prop="a3">
                          </el-table-column>
                          <el-table-column
                              label="办理时间" prop="a4">
                          </el-table-column>
                          <el-table-column
                              label="注销时间" prop="a5">
                          </el-table-column>
                      </el-table>
              </div>
            </div>
            <div class="fuwukab">车辆及服务监督卡信息</div>
            <div style="margin: 10px 0; overflow: hidden;">
              <div style="width: 45%; display: inline; float: left;">
                  <el-row>
                  	<el-col :span="24">
                  	  <el-form-item label="单位名称" class="cyqlabel" >
                  	  		<el-input  size="small" v-model="editForm.jiandu9" ></el-input>
                  	  </el-form-item>
                  	</el-col>
                  </el-row>
                  <el-row>
                  	<el-col :span="24">
                  	  <el-form-item label="车辆类型" class="cyqlabel" >
                  	  		<el-input  size="small" v-model="editForm.jiandu10" ></el-input>
                  	  </el-form-item>
                  	</el-col>
                  </el-row>
                  <el-row>
                  	<el-col :span="24">
                  	  <el-form-item label="车身编号" class="cyqlabel" >
                  	  		<el-input  size="small" v-model="editForm.jiandu11" ></el-input>
                  	  </el-form-item>
                  	</el-col>
                  </el-row>
                  <el-row>
                  	<el-col :span="12">
                  	  <el-form-item label="颜色" class="cyqlabel" >
                  	  		<el-input  size="small" v-model="editForm.jiandu12" ></el-input>
                  	  </el-form-item>
                  	</el-col>
                    <el-col :span="12">
                      <el-form-item label="车主" class="cyqlabel" >
                      		<el-input  size="small" v-model="editForm.jiandu13" ></el-input>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                  	<el-col :span="24">
                  	  <el-form-item label="年审结果" class="cyqlabel" >
                  	  		<el-input  size="small" v-model="editForm.jiandu14" ></el-input>
                  	  </el-form-item>
                  	</el-col>
                  </el-row>
              </div>
              <div style="width: 50%; margin-left: 5%; display: inline; float: left;">
                    <div class="fuwukab">该车已有服务监督卡</div>
                    <el-table :data="tabledataw" size="mini" border stripe header-row-class-name="textcenter">
                            <el-table-column
                                label="驾驶员姓名" fixed="left" prop="a1">
                            </el-table-column>
                            <el-table-column
                                label="服务监督卡类型" prop="a2">
                            </el-table-column>
                            <el-table-column
                                label="办理时间" prop="a3">
                            </el-table-column>
                        </el-table>
              </div>
            </div>

            <div style="text-align:center;margin-top:6px;">
              <el-button type="info" size="small" @click="dialogVisible=false">取消</el-button>
            </div>
          </el-scrollbar>
        	</el-form>
        </el-dialog>
</div>
</template>

<script>
export default {
    data(){
        return {
              dialogVisible:false,
              form:{
                  ming:'',
              },
              editForm:{
                jiandu1:'',
                jiandu2:'',
                jiandu3:'',
                jiandu4:'',
                jiandu5:'',
                jiandu6:'',
                jiandu7:'',
                jiandu8:'',
                jiandu9:'',
                jiandu10:'',
                jiandu11:'',
                jiandu12:'',
                jiandu13:'',
                jiandu14:'',
              },
              tabledata:[
                {
                    a1: '丁建国',
                    a2: 'ZG1231',
                    a3: '陕A39192',
                    a4: 'XQ3380',
                    a5: 'XH1300',
                    a6: '是',
                    a7: '电子版',
                    a8: '已申请',
                    a9: '刘聿怀',
                    a10: '2018-10-10',
                    a11: '暂无',
                    a12: '2019-10-10',
                },
                {
                    a1: '王爽国',
                    a2: 'ZG1232',
                    a3: '陕A39333',
                    a4: 'XQ3381',
                    a5: 'XH1301',
                    a6: '是',
                    a7: '电子版',
                    a8: '已申请',
                    a9: '刘一声',
                    a10: '2018-10-10',
                    a11: '暂无',
                    a12: '2019-10-10',
                },
                {
                    a1: '王梨园',
                    a2: 'ZG1232',
                    a3: '陕A39195',
                    a4: 'XQ3382',
                    a5: 'XH1302',
                    a6: '是',
                    a7: '电子版',
                    a8: '已申请',
                    a9: '于德怀',
                    a10: '2018-10-10',
                    a11: '暂无',
                    a12: '2019-10-10',
                },
              ],
              tabledataq:[
                {
                    a1: '陕A59303',
                    a2: '东软集团',
                    a3: '电子版',
                    a4: '2018-10-10',
                    a5: '2018-10-10',
                },
              ],
              tabledataw:[
                {
                    a1: '王梨园',
                    a2: '2018-10-10',
                    a3: '2018-10-10',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },
              item:[
              	{text:'驾驶员',value:'0'},
              	{text:'顶班卡',value:'1'},
              	{text:'7天临时卡',value:'2'},
                {text:'30天临时卡',value:'3'},
              ],
        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
.public-common .el-form-item .el-input{ width: 100%;}
.public-title,.fuwukab{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}
.cyqlabel .el-form-item__label{ width: 100px !important;}
.cyqlabel .el-form-item__content{ margin-left: 100px  !important;}
.el-scrollbar__wrap{ margin: 0 !important;}
</style>
